<%@page contentType="text/html; charset=utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Feedback </title>
<link href="<s:url value="/css/admin.css"/>

" rel="stylesheet" type="text/css">
<s:head/>
</head>
<body>
<s:form action="setfeedbackconfig" method="post" name="frm">
<center>
  <strong>Feedback</strong>
</center>
<br>
<center><s:actionmessage/> <s:actionerror/></center>
<center><strong><font color="red">Current Feedback:<s:property value="%{getFeedbackMode()}"/></font></strong></center>
<table width="84%" height="255"  border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse:collapse ">
  <tr>
    <td width="23%" height="49" align="right"><strong>Feedback when submitted:</strong></td>
    <td width="44%">
    <s:radio list="#{'true':'Yes','false':'No'}" value="%{feedbackWhenSubmitted}" name="feedbackWhenSubmitted"/>
    </td>
    <td width="33%">Feedback when bugs were submitted</td>
  </tr>
  <tr>
    <td align="right"><strong>Feedback when fixed:</strong></td>
    <td>
    <s:radio list="#{'true':'Yes','false':'No'}" value="%{feedbackWhenFixed}" name="feedbackWhenFixed"/>
    </td>
    <td>Feedback when debugs were fixed</td>
  </tr>
  <tr>
    <td align="right"><strong>feedback when closed:</strong></td>
    <td>
    <s:radio list="#{'true':'Yes','false':'不Yes'}" value="%{feedbackWhenClosed}" name="feedbackWhenClosed"/>
    </td>
    <td>feedback when bugs were closed</td>
  </tr>
  <tr>
    <td align="right"><strong>type:</strong></td>
    <td colspan="2"><s:checkboxlist list="@com.debug.config.Constant@DEBUG_TYPE_MAP" name="debugType"/></td>
  </tr>
  <tr>
    <td align="right"><strong>feedback schedule expression:</strong></td>
    <td>
    <s:textfield name="cronExpression"/>
    </td>
    <td>feedback schedule cron expression</td>
  </tr>
</table>
<br>
<table width="61%"  border="00" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">
    <input type="button" name="Submit" value=" submit " onClick="if(confirm('Are you sure to modify the feedback settup ?'))frm.submit();">&nbsp;&nbsp;&nbsp;
    <input type="button" name="Submit2" value=" reset " onClick="frm.reset();">
    </td>
  </tr>
</table>
</s:form>
</body>
</html>
